package com.tq.application;

import com.tq.http.TBaseHttpClient;
import com.tq.util.EtIbUtil;
import com.tq.util.InternetUtil;
import com.tq.util.PreferenceUtil;
import com.tq.util.StringUtil;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.widget.EditText;

public class TBaseApplication extends Application {
	
	private static StringUtil stringUtil;
	private static InternetUtil internetUtil;
	private static TBaseHttpClient httpClient;
	private static PreferenceUtil preferenceUtil;
	private static EtIbUtil etIbUtil;
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
		
		
		this.internetUtil=new InternetUtil(this);
		this.stringUtil=new StringUtil();
		this.preferenceUtil=new PreferenceUtil(this);
		this.etIbUtil=new EtIbUtil();
		
		httpClient=new TBaseHttpClient();
	}
	
	public static StringUtil getStringUtil()
	{
		return stringUtil;
	}
	
	public static TBaseHttpClient getHttpClient()
	{
		return httpClient;
	}
	
	
	public static PreferenceUtil getPreferenceUtil()
	{
		return preferenceUtil;
	}
	
	
	public static InternetUtil getInternetUtil()
	{
		return internetUtil;
	}
	
	public static EtIbUtil getEtIbUtil() {
		return etIbUtil;
	}
}
